package com.zhk.ScriptManagement.mapper;

import com.zhk.ScriptManagement.entity.Order;
import com.zhk.ScriptManagement.entity.vo.OrderVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface OrderMapper {
    int addOrder(@Param("order") Order order);

    int deleteOrder(@Param("orderId") Integer orderId);

    List<OrderVo> getOrder();

    OrderVo getOrderByOrderId(@Param("orderId") Integer orderId);

    int updateOrder(@Param("order") Order order);

    int addHistoryScript(@Param("order") Order order);

    List<Order> selectNotFinishOrders();
}
